using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using com.paypal.soap.api;
using IGlobalist.Cms.Common;

namespace IGlobalist.Cms
{
    public partial class Receipt : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                DataBind();
            }
        }

        public DoDirectPaymentResponseType DoDirectPaymentResponse
        {
            get
            {
                return this.PayPalResponse as DoDirectPaymentResponseType;
            }
        }

        public  void DataBind()
        {
            this.SuccessfulPlaceholder.Visible = this.IsTransactionSuccessful;
           /* if (this.DoDirectPaymentResponse != null && this.IsTransactionSuccessful)
            {
               
            }*/
            Response.Redirect(Session["Url"].ToString(), true);
        }
    }
}
